/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
package cn.cnsy123.bookwebsiteserver.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Description:一些注释<br/>
 * CreateTime:2019-03-26<br/>
 * Creater: yangpengfei360@126.com <br/>
 * @author yangpengfei
 */
@Entity
@Table(name = "BOOK_READER_TYPE_INFO")
public class BookReaderTypeInfo {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "READER_TYPE_ID")
    private Long readerTypeId;
    
    @Column(name = "READER_TYPE_NAME",length = 80)
    private String readerTypeName;
    
    @Column(name = "READER_BORROW_NUMBER",length = 2)
    private Integer readerBorrowNumber;

    public Long getReaderTypeId() {
        return readerTypeId;
    }

    public void setReaderTypeId(Long readerTypeId) {
        this.readerTypeId = readerTypeId;
    }

    public String getReaderTypeName() {
        return readerTypeName;
    }

    public void setReaderTypeName(String readerTypeName) {
        this.readerTypeName = readerTypeName;
    }

    public Integer getReaderBorrowNumber() {
        return readerBorrowNumber;
    }

    public void setReaderBorrowNumber(Integer readerBorrowNumber) {
        this.readerBorrowNumber = readerBorrowNumber;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("\"BookReaderTypeInfo\":{\"readerTypeId\":");
        builder.append(readerTypeId);
        builder.append(", readerTypeName\":");
        builder.append(readerTypeName);
        builder.append(", readerBorrowNumber\":");
        builder.append(readerBorrowNumber);
        builder.append("}");
        return builder.toString();
    }
    
    

}
